package day01;
//输入n计算1~n 全部连接起来的长度(n分别取100,100000,100000000,100000000000000)


public class JoinNumbers0 {
    public static void main(String[] args) {
        int n = 19;//n=1e9
        String s = new String();
        System.out.println(s);
        for (int i = 1; i <= n; i++) {
            s = s + i;//s=s+Integer.toString(i);
        }
        System.out.println(s.length());
    }
}
